package kr.hkit.powerjava.homework;

public class Customer extends Person{

	private int Personnum;
	private int mail;
	

	public Customer(String name, String adress, String tel, int personnum,
			int mail) {
		super(name, adress, tel);
		Personnum = personnum;
		this.mail = mail;
	}
	public int getPersonnum() {
		return Personnum;
	}
	public void setPersonnum(int personnum) {
		Personnum = personnum;
	}

	public int getMail() {
		return mail;
	}

	@Override
	public String toString() {
		return super.toString()+"Customer [Personnum=" + Personnum + ", mail=" + mail + "]";
	}


	public void setMail(int mail) {
		this.mail = mail;
	}
	public static void main(String[] args) {
		Person ps = new Customer("1","2","3",1,2);
		System.out.println(ps);
	}
	
}
